<template>
<!-- 这里是放置图片的地方 -->
  <div class="homecontainer" :style="' background-color:'+String(backgoundcolor)">
  <GoodTitle :goodname="goodname" :goodinfo="goodinfo" :fontcolor="fontcolor"/>
  <img :src="imgsrc" alt="iphonese">
  </div>
</template>

<script>
import GoodTitle from '../../comcomponents/GoodTitle.vue'

export default {
    name:'',
    components: { GoodTitle },
    props:['goodname','goodinfo','imgsrc','fontcolor','iphonese','backgoundcolor']
}
</script>

<style lang="less" scoped>
// 这个是对图片进行css样式设定
.homecontainer{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    font-size: 1em;  
    padding-top: 10%;
    margin-bottom: 13px;
    img{
        // 这里的图片缩小只是宽度缩小，并不是等比例缩小
        width:100% ;
        height: auto;
    }
}
</style>